package com.jgraves.WikiToSpeech.objects;

import java.util.LinkedHashMap;
import java.util.ArrayList;
import java.util.Map;

/** Object holding a sequence of questions
 * @author johngraves
 *
 */
public class Sequence {
	
	private ArrayList<Question> sequence = new ArrayList<Question>();
	
	/** Tells which questions have which tags in parse of sequence */
	private Map<String,Integer> mQuestionTagMap = new LinkedHashMap<String,Integer>();
	
	/** Rules for string matching of inputs */
	private ArrayList<Rule> rules = new ArrayList<Rule>();
	
	public Sequence(ArrayList<Question> l) {
		l = sequence;
	}
	
	public Question getQuestion(int i) {
		return sequence.get(i);
	}
	
	public ArrayList<Question> getQuestions() {
		return sequence;
	}
	
	public void addQuestion(Question q) {
		sequence.add(q);
	}
	
	public Integer getSize() {
		return sequence.size();
	}

	public ArrayList<Question> getSequence() {
		return sequence;
	}

	public void setSequence(ArrayList<Question> sequence) {
		this.sequence = sequence;
	}

	public Map<String, Integer> getmQuestionTagMap() {
		return mQuestionTagMap;
	}

	public void setmQuestionTagMap(Map<String, Integer> mQuestionTagMap) {
		this.mQuestionTagMap = mQuestionTagMap;
	}

	public ArrayList<Rule> getRules() {
		return rules;
	}

	public void setRules(ArrayList<Rule> rules) {
		this.rules = rules;
	}

}
